-- GENERATED SPELL FOR [Stormforged Mender] --


function spell0_28582(pUnit, Event) --@Hammer Blow,n/a--
pUnit:FullCastSpellOnTarget(52773,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28582', 5287, 1)
end

function spell1_28582(pUnit, Event) --@Renew Steel,n/a--
pUnit:FullCastSpellOnTarget(52774,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28582', 8000, 1)
end

function spell2_28582(pUnit, Event) --@Renew Steel,n/a--
pUnit:FullCastSpellOnTarget(59160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28582', 7500, 1)
end

function Sorts_28582(pUnit, Event)
local choix_sorts_28582 = math.random(0, 2)
if choix_sorts_28582 == 0 then
pUnit:RegisterEvent('spell0_28582', 1, 1)
end
if choix_sorts_28582 == 1 then
pUnit:RegisterEvent('spell1_28582', 1, 1)
end
if choix_sorts_28582 == 2 then
pUnit:RegisterEvent('spell2_28582', 1, 1)
end
end

function mob28582_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28582', math.random(1500, 3000), 1)
end

function mob28582_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28582_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28582_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28582, 1, 'mob28582_Action')
RegisterUnitEvent(28582, 2, 'mob28582_Leave')
RegisterUnitEvent(28582, 3, 'mob28582_Kill')
RegisterUnitEvent(28582, 4, 'mob28582_Die')
